package com.hyts.standard.webflux.meter;

import io.micrometer.core.instrument.Counter;
import io.micrometer.core.instrument.Metrics;
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;

public class GlobalRegistryExample {


  public static void main(String[] args) {
    Metrics.addRegistry(new SimpleMeterRegistry());
    Counter counter = Metrics.counter("simple");
    counter.increment();
    counter.increment();
    System.out.println(counter.count());
    System.out.println(Metrics.counter("simple").count());
  }
}
